Skip to content

Conversation

@pcanal
Copy link
Member

@pcanal pcanal commented Nov 29, 2025

No description provided.

@pcanal pcanal self-assigned this Nov 29, 2025
@github-actions
Copy link

github-actions bot commented Nov 29, 2025

Test Results

    21 files      21 suites   3d 19h 37m 34s ⏱️
 3 783 tests  3 783 ✅ 0 💤 0 ❌
77 512 runs  77 512 ✅ 0 💤 0 ❌

Results for commit 41a877a.

♻️ This comment has been updated with latest results.

In order to support 64 bits byte count, which does not fit in the space reverse for them
in the stream (4 bytes minus 3 control bits) and the position and some byte count do not
fit in the variable used in existing code (arguments to WriteVersion, SetByteCount,
ReadVersion and CheckByteCount), we need to pass them indirectly.

Since the streaming is inherently serial, we can leverage the
sequence of calls and cache the 64 bits values in a queue.

The bytecount that can not be stored in place in the stream will be held
in a collection (fByteCounts) that need to be stored externally to the
buffer.
Note to store and restore the larger than 1GB byte count use:

  // Copy the content of the const reference.
  auto bytecounts{b.GetByteCounts()};
  ...
  b.SetByteCounts(std::move(bytecounts));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant